package com.demo.server.mapper;

import java.util.List;

import com.demo.server.entity.Permission;
import com.demo.server.entity.req.PermissionIconSetReq;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission row);

    int insertSelective(Permission row);

    Permission selectByPrimaryKey(Integer id);
    
    Permission selectByUrl(String url);
    
    Permission selectByTitle(String title);
    
    Permission selectOne(Permission row);
    
    List<String> selectUrlByUserId(String userId);
    
    List<Permission> select(Permission row);
    
    List<String> selectAllUrl();
    
    List<Permission> selectAll();
    
    List<Permission> selectByRoleId(String roleId);
    
    List<Permission> selectByUserId(String userId);
    
    List<Permission> selectMenuByUserId(String userId);

    int updateByPrimaryKeySelective(Permission row);

    int updateByPrimaryKey(Permission row);
    
    int updateIconByUrl(PermissionIconSetReq row);
}